//
//  NSLock+NSLockExtend.h
//  etionMisc
//
//  Created by wu jingxing on 13-3-13.
//  Copyright (c) 2013年 GuangZhouXuanWu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSLock (NSLockExtend)

-(void)lock:(void(^)())block;

-(void)lockBeforeDate:(NSDate*)date block:(void(^)())block;

@end

@interface NSCondition (NSConditionExtend)

-(void)lock:(void(^)())block;

@end